package com.kundi.dooradmin.mapper;

import com.kundi.dooradmin.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
 * Author 赵恒
 * Date 2020/6/16
 */
@MapperScan
public interface UserMapper extends Mapper<User> {
    @Select("select * from tb_user where username = #{username}")
    List<User> hasUsername(@Param("username") String username);
}
